<template>
    <div class="_box">
        <div class="flex tag-group" :key="listItemIndex" v-for="(listItem, listItemIndex) in [
            {name: '技能标签', list: data.resumeSkillInfos},
            {name: '擅长类型', list: data.resumeTypesInfos},
            {name: '擅长风格', list: data.resumeStylesInfos},
        ]">
            <p class="title-name">{{listItem.name}}</p>
            <div class="list"><span class="tag-name" v-for="(item, index) in listItem.list" :key="`_${index}`">{{item.name}}</span></div>
            <div class="list" v-if="listItem && listItem.list && listItem.list.length === 0"><span>无</span></div>
        </div>
        <div class="flex item list-item" v-for="(item, index) in [
            {name: '所在区域', text: `${
                data.resumeAreaInfos ? 
                    data.resumeAreaInfos.cityName ? data.resumeAreaInfos.cityName : '无' :
                '无'
            } ${
                data.resumeAreaInfos ?
                    data.resumeAreaInfos.areaName ? data.resumeAreaInfos.areaName : '' :
                ''
            }`},
            {name: '工作年限', text: `${data.workYears ? data.workYears + '年' : '无'}`},
        ]" :key="`item_${index}`">
            <p class="title-name">{{item.name}}</p>
            <div>
                <p class="text">{{item.text}}</p>
            </div>
        </div>
        <div class="flex work-history-box">
            <p class="title-name">工作经历</p>
            <div class="list">
                <template v-for="(item, index) in data.workHistorys">
                    <p class="name" :key="`${index}`">{{item.companyName}}</p>
                    <p class="time" :key="`_${index}`">{{`${item.beginDate.split(' ')[0].replace(/-/g, '.')} - ${item.endDate.split(' ')[0].replace(/-/g, '.')}`}}</p>
                </template>
                <div v-if="data.workHistorys && data.workHistorys.length === 0">无</div>
            </div>
        </div>
    </div>
</template>
<script>
export default {
    props: ['data'],
    data(){
        return {
            // skillsTag: [
            //     {name: '线上',},
            //     {name: '线上',},
            //     {name: '线上',},
            //     {name: '线上',},
            //     {name: '线上',},
            //     {name: '线上',},
            //     {name: '线上',},
            //     {name: '线上',},
            //     {name: '线上',},
            // ],
            // goodAtType: [
            //     {name: '线上',},
            //     {name: '线上',},
            //     {name: '线上',},
            //     {name: '线上',},
            //     {name: '线上',},
            // ],
            // goodAtStyle: [
            //     {name: '线上',},
            //     {name: '线上',},
            //     {name: '线上',},
            //     {name: '线上',},
            //     {name: '线上',},
            // ],
            // workHistorys: [
            //     {name: 'xxx公司', time: '20129-xsxs 203-223'},
            //     {name: 'xxx公司', time: '20129-xsxs 203-223'},
            // ]
        }
    }
}
</script>

<style lang="scss" scoped>
@import './introduction.scss';
</style>
>